package com.wtf.generator.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
/**
 * description: 应用配置
 * date: 2022/6/18 10:59
 * @author linhuanyou
 * @email 496558736@qq.com
 * @version 1.0
 */
@Configuration
public class AppConfig {

    public static String port;

    public static String app;

    @Value("${server.port}")
    public void setPort(String port){
        AppConfig.port = port;
    }

    @Value("${spring.application.name}")
    public void setApp(String app){
        AppConfig.app = app;
    }
}
